from machine import Pin,PWM
import time

p19=PWM(Pin(19))
p19.freq(50)

def ca(bfb):
    ret =int(65535*bfb)
    #print(ret)
    return ret

def stop():
    p19.duty(0)
    time.sleep(1)
    pass

def r():
    duty=p19.duty_u16(ca(0.073))#3-12
    time.sleep_ms(20)
    pass

def l():
    duty=p19.duty_u16(ca(0.077))#3-12
    time.sleep_ms(20)
    pass
for i in range(0,100,1):
    r()
    stop()
    l()
    stop()
    
    